import java.io.BufferedReader;
import java.io.InputStreamReader;

public class WYYAPI extends Thread {


    public static void main(String[] args) {
        System.out.println(System.getProperty("user.dir"));
        try {
            Process p = null;
            String line = null;
            BufferedReader stdout = null;
            String command = "node ./NeteaseCloudMusicApi-master/app.js";
            p = Runtime.getRuntime().exec(command);
            stdout = new BufferedReader(new InputStreamReader(
                    p.getInputStream()));
            while ((line = stdout.readLine()) != null) {
                System.out.println(line);
            }
            stdout.close();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    @Override
    public void run() {

    }

}
